package com.game.majiang.vo;

import java.sql.Types;

import com.game.server.db.Parameter;
import com.game.server.db.ParameterType;
import com.game.server.db.SqlHelper;
import com.game.server.db.SqlHelperwrite;

public class WuziqiGamelogVo {

	/**
	 * 
	 * @param playerid   ?,? 列如 10234,10000
	 * @param tableid 桌子id
	 * @param starttime 当局游戏开始时间
	 * @param allwin  uid=?,win:?;uid=?,win:?  列如 uid=10234,win:20;uid=10000,win:-20
	 * @param roomtype 房间类型
	 */
	public static void Addwuziqigamelog(String playerid,int tableid,String starttime,String allwin,int roomtype) {
		 String sql = "INSERT INTO wuziqigamelog (playerid,tableid,starttime,allwin,roomtype) VALUES (?,?,?,?,?)";
		 Parameter p1 = new Parameter(Types.VARCHAR,  playerid, ParameterType.Input);
		 Parameter p2 = new Parameter(Types.INTEGER,  tableid, ParameterType.Input);
		 Parameter p3 = new Parameter(Types.VARCHAR,  starttime, ParameterType.Input);
		 Parameter p4 = new Parameter(Types.VARCHAR,  allwin, ParameterType.Input);
		 Parameter p5 = new Parameter(Types.INTEGER, roomtype, ParameterType.Input);
		 SqlHelperwrite.execute(sql,p1,p2,p3,p4,p5);
	}
}
